package com.cws.business.impl;

import java.util.List;
import java.util.Map;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.RuntimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cws.business.IUserBusiness;
import com.cws.model.User;
import com.cws.service.BaseService;
import com.cws.util.SpringContextHolder;

@Service
@Transactional
public class UserBusinessImpl extends BaseService implements IUserBusiness {

	
	
	@Override
	public <T> List<User> getUser(String hql, int page, int pagesize, Map params) {
			return getBaseDAO().queryList2(params);
	}

	
	@Override
	public boolean saveUser(User user) {
		
		save(user);
		String s = null;
		s.toString();
		return true;
	}


	@Override
	public List<User> getUsers(Map params) {
		return getBaseDAO().queryList2(params);
	}


	
	

}
